home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 May: Tool Chest / Dev.CD May 00 TC.toast / pc / tool chest / macapp / macapp r14d5 / install macapp r14d5 / Apple Frameworks / WASTE / Source / WEICGlue.c < prev    next >
MacBinary  |  2000-02-25  |  7.1 KB  |  [TEXT/CWIE]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Fri Feb 25 05:00:00 2000, modified Fri Feb 25 05:00:00 2000, creator 'CWIE', type ASCII, 6745 bytes "WEICGlue.c" , at 0x1ad9 286 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[CWIE]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0a 57 45 49 43 47 6c | 75 65 2e 63 00 00 00 00 |..WEICGl|ue.c....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 00 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 1a 59 00 | 00 01 1e b4 dc 03 20 b4 |......Y.|...... .|
|00000060| dc 03 20 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.. .....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 ed fb 00 00 |........|........|
|00000080| 2f 2a 0d 20 2a 09 57 45 | 49 43 47 6c 75 65 2e 63 |/*. *.WE|ICGlue.c|
|00000090| 0d 20 2a 0d 20 2a 09 57 | 41 53 54 45 20 50 52 4f |. *. *.W|ASTE PRO|
|000000a0| 4a 45 43 54 0d 20 2a 20 | 20 49 6e 74 65 72 6e 65 |JECT. * | Interne|
|000000b0| 74 20 43 6f 6e 66 69 67 | 20 47 6c 75 65 0d 20 2a |t Config| Glue. *|
|000000c0| 0d 20 2a 20 20 43 6f 70 | 79 72 69 67 68 74 20 28 |. * Cop|yright (|
|000000d0| 63 29 20 31 39 39 33 2d | 31 39 39 38 20 4d 61 72 |c) 1993-|1998 Mar|
|000000e0| 63 6f 20 50 69 6f 76 61 | 6e 65 6c 6c 69 0d 20 2a |co Piova|nelli. *|
|000000f0| 09 41 6c 6c 20 52 69 67 | 68 74 73 20 52 65 73 65 |.All Rig|hts Rese|
|00000100| 72 76 65 64 0d 20 2a 0d | 20 2a 20 20 43 20 70 6f |rved. *.| * C po|
|00000110| 72 74 20 62 79 20 44 61 | 6e 20 43 72 65 76 69 65 |rt by Da|n Crevie|
|00000120| 72 0d 20 2a 0d 20 2a 2f | 0d 0d 2f 2a 0d 09 50 6f |r. *. */|../*..Po|
|00000130| 72 74 69 6f 6e 73 20 63 | 6f 70 79 72 69 67 68 74 |rtions c|opyright|
|00000140| 20 a9 20 31 39 39 38 2d | 32 30 30 30 20 62 79 20 | . 1998-|2000 by |
|00000150| 41 70 70 6c 65 20 43 6f | 6d 70 75 74 65 72 2c 20 |Apple Co|mputer, |
|00000160| 49 6e 63 2e 20 41 6c 6c | 20 72 69 67 68 74 73 20 |Inc. All| rights |
|00000170| 72 65 73 65 72 76 65 64 | 2e 0d 0d 09 43 68 61 6e |reserved|....Chan|
|00000180| 67 65 20 48 69 73 74 6f | 72 79 3a 0d 09 09 30 31 |ge Histo|ry:...01|
|00000190| 2f 32 36 2f 30 30 09 54 | 57 42 09 09 4d 61 6b 65 |/26/00.T|WB..Make|
|000001a0| 20 6f 75 72 20 76 65 72 | 73 69 6f 6e 20 6f 66 20 | our ver|sion of |
|000001b0| 43 61 6c 6c 43 6f 6d 70 | 6f 6e 65 6e 74 44 69 73 |CallComp|onentDis|
|000001c0| 70 61 74 63 68 20 61 20 | 70 61 73 63 61 6c 20 66 |patch a |pascal f|
|000001d0| 75 6e 63 74 69 6f 6e 0d | 09 09 09 09 09 09 09 73 |unction.|.......s|
|000001e0| 6f 20 77 65 20 63 61 6e | 20 62 75 69 6c 64 20 43 |o we can| build C|
|000001f0| 46 4d 20 6e 6f 6e 2d 43 | 61 72 62 6f 6e 20 61 70 |FM non-C|arbon ap|
|00000200| 70 73 20 77 69 74 68 20 | 74 68 65 20 43 61 72 62 |ps with |the Carb|
|00000210| 6f 6e 69 7a 65 64 20 68 | 65 61 64 65 72 73 2e 20 |onized h|eaders. |
|00000220| 0d 09 09 30 31 2f 31 31 | 2f 30 30 09 54 57 42 09 |...01/11|/00.TWB.|
|00000230| 09 43 61 72 62 6f 6e 3a | 20 55 50 50 73 20 61 72 |.Carbon:| UPPs ar|
|00000240| 65 20 6f 70 61 71 75 65 | 2e 20 0d 09 09 09 09 09 |e opaque|. ......|
|00000250| 09 09 43 61 72 62 6f 6e | 3a 20 69 6e 74 65 72 6e |..Carbon|: intern|
|00000260| 65 74 20 63 6f 6e 66 69 | 67 20 69 73 20 69 6e 20 |et confi|g is in |
|00000270| 43 61 72 62 6f 6e 4c 69 | 62 2e 20 0d 09 09 31 32 |CarbonLi|b. ...12|
|00000280| 2f 31 30 2f 39 39 09 6d | 64 72 2f 54 59 09 43 68 |/10/99.m|dr/TY.Ch|
|00000290| 61 6e 67 65 20 50 52 41 | 47 4d 41 5f 41 4c 49 47 |ange PRA|GMA_ALIG|
|000002a0| 4e 5f 53 55 50 50 4f 52 | 54 45 44 20 74 6f 20 50 |N_SUPPOR|TED to P|
|000002b0| 52 41 47 4d 41 5f 53 54 | 52 55 43 54 5f 41 4c 49 |RAGMA_ST|RUCT_ALI|
|000002c0| 47 4e 20 61 6e 64 0d 09 | 09 09 09 09 09 09 47 45 |GN and..|......GE|
|000002d0| 4e 45 52 41 54 49 4e 47 | 43 46 4d 20 74 6f 20 54 |NERATING|CFM to T|
|000002e0| 41 52 47 45 54 5f 52 54 | 5f 4d 41 43 5f 43 46 4d |ARGET_RT|_MAC_CFM|
|000002f0| 2e 0d 2a 2f 0d 0d 23 69 | 66 20 21 54 41 52 47 45 |..*/..#i|f !TARGE|
|00000300| 54 5f 43 41 52 42 4f 4e | 0d 0d 23 69 66 6e 64 65 |T_CARBON|..#ifnde|
|00000310| 66 20 5f 5f 49 43 41 50 | 49 5f 5f 0d 23 69 6e 63 |f __ICAP|I__.#inc|
|00000320| 6c 75 64 65 20 22 49 43 | 41 50 49 2e 68 22 0d 23 |lude "IC|API.h".#|
|00000330| 65 6e 64 69 66 0d 0d 23 | 69 66 6e 64 65 66 20 5f |endif..#|ifndef _|
|00000340| 5f 49 43 43 4f 4d 50 4f | 4e 45 4e 54 53 45 4c 45 |_ICCOMPO|NENTSELE|
|00000350| 43 54 4f 52 53 5f 5f 0d | 23 69 6e 63 6c 75 64 65 |CTORS__.|#include|
|00000360| 20 22 49 43 43 6f 6d 70 | 6f 6e 65 6e 74 53 65 6c | "ICComp|onentSel|
|00000370| 65 63 74 6f 72 73 2e 68 | 22 0d 23 65 6e 64 69 66 |ectors.h|".#endif|
|00000380| 0d 0d 23 69 66 6e 64 65 | 66 20 5f 5f 43 4f 4d 50 |..#ifnde|f __COMP|
|00000390| 4f 4e 45 4e 54 53 5f 5f | 0d 23 69 6e 63 6c 75 64 |ONENTS__|.#includ|
|000003a0| 65 20 3c 43 6f 6d 70 6f | 6e 65 6e 74 73 2e 68 3e |e <Compo|nents.h>|
|000003b0| 0d 23 65 6e 64 69 66 0d | 0d 23 69 66 6e 64 65 66 |.#endif.|.#ifndef|
|000003c0| 20 5f 5f 47 45 53 54 41 | 4c 54 5f 5f 0d 23 69 6e | __GESTA|LT__.#in|
|000003d0| 63 6c 75 64 65 20 3c 47 | 65 73 74 61 6c 74 2e 68 |clude <G|estalt.h|
|000003e0| 3e 0d 23 65 6e 64 69 66 | 0d 0d 23 69 66 6e 64 65 |>.#endif|..#ifnde|
|000003f0| 66 20 5f 5f 45 52 52 4f | 52 53 5f 5f 0d 23 69 6e |f __ERRO|RS__.#in|
|00000400| 63 6c 75 64 65 20 3c 45 | 72 72 6f 72 73 2e 68 3e |clude <E|rrors.h>|
|00000410| 0d 23 65 6e 64 69 66 0d | 0d 23 69 66 20 50 52 41 |.#endif.|.#if PRA|
|00000420| 47 4d 41 5f 53 54 52 55 | 43 54 5f 41 4c 49 47 4e |GMA_STRU|CT_ALIGN|
|00000430| 0d 23 70 72 61 67 6d 61 | 20 6f 70 74 69 6f 6e 73 |.#pragma| options|
|00000440| 20 61 6c 69 67 6e 3d 6d | 61 63 36 38 6b 0d 23 65 | align=m|ac68k.#e|
|00000450| 6e 64 69 66 0d 0d 2f 2f | 09 49 6e 74 65 72 6e 65 |ndif..//|.Interne|
|00000460| 74 20 43 6f 6e 66 69 67 | 20 63 6f 6d 70 6f 6e 65 |t Config| compone|
|00000470| 6e 74 20 74 79 70 65 20 | 61 6e 64 20 73 75 62 74 |nt type |and subt|
|00000480| 79 70 65 0d 0d 65 6e 75 | 6d 0d 7b 0d 09 6b 49 43 |ype..enu|m.{..kIC|
|00000490| 43 6f 6d 70 6f 6e 65 6e | 74 54 79 70 65 20 3d 20 |Componen|tType = |
|000004a0| 27 50 52 45 46 27 2c 0d | 09 6b 49 43 43 6f 6d 70 |'PREF',.|.kICComp|
|000004b0| 6f 6e 65 6e 74 53 75 62 | 54 79 70 65 20 3d 20 27 |onentSub|Type = '|
|000004c0| 49 43 41 70 27 0d 7d 3b | 0d 0d 23 69 66 20 54 41 |ICAp'.};|..#if TA|
|000004d0| 52 47 45 54 5f 52 54 5f | 4d 41 43 5f 43 46 4d 0d |RGET_RT_|MAC_CFM.|
|000004e0| 0d 65 6e 75 6d 0d 7b 0d | 09 75 70 70 43 61 6c 6c |.enum.{.|.uppCall|
|000004f0| 43 6f 6d 70 6f 6e 65 6e | 74 50 72 6f 63 49 6e 66 |Componen|tProcInf|
|00000500| 6f 20 3d 20 6b 50 61 73 | 63 61 6c 53 74 61 63 6b |o = kPas|calStack|
|00000510| 42 61 73 65 64 0d 09 09 | 7c 20 52 45 53 55 4c 54 |Based...|| RESULT|
|00000520| 5f 53 49 5a 45 28 53 49 | 5a 45 5f 43 4f 44 45 28 |_SIZE(SI|ZE_CODE(|
|00000530| 73 69 7a 65 6f 66 28 43 | 6f 6d 70 6f 6e 65 6e 74 |sizeof(C|omponent|
|00000540| 52 65 73 75 6c 74 29 29 | 29 0d 09 09 7c 20 53 54 |Result))|)...| ST|
|00000550| 41 43 4b 5f 52 4f 55 54 | 49 4e 45 5f 50 41 52 41 |ACK_ROUT|INE_PARA|
|00000560| 4d 45 54 45 52 28 31 2c | 20 53 49 5a 45 5f 43 4f |METER(1,| SIZE_CO|
|00000570| 44 45 28 73 69 7a 65 6f | 66 28 43 6f 6d 70 6f 6e |DE(sizeo|f(Compon|
|00000580| 65 6e 74 50 61 72 61 6d | 65 74 65 72 73 20 2a 29 |entParam|eters *)|
|00000590| 29 29 0d 7d 3b 0d 0d 73 | 74 61 74 69 63 20 70 61 |)).};..s|tatic pa|
|000005a0| 73 63 61 6c 20 43 6f 6d | 70 6f 6e 65 6e 74 52 65 |scal Com|ponentRe|
|000005b0| 73 75 6c 74 20 43 61 6c | 6c 43 6f 6d 70 6f 6e 65 |sult Cal|lCompone|
|000005c0| 6e 74 44 69 73 70 61 74 | 63 68 28 43 6f 6d 70 6f |ntDispat|ch(Compo|
|000005d0| 6e 65 6e 74 50 61 72 61 | 6d 65 74 65 72 73 20 2a |nentPara|meters *|
|000005e0| 09 63 70 29 0d 7b 0d 09 | 72 65 74 75 72 6e 20 43 |.cp).{..|return C|
|000005f0| 61 6c 6c 55 6e 69 76 65 | 72 73 61 6c 50 72 6f 63 |allUnive|rsalProc|
|00000600| 20 28 20 43 61 6c 6c 43 | 6f 6d 70 6f 6e 65 6e 74 | ( CallC|omponent|
|00000610| 55 50 50 2c 20 75 70 70 | 43 61 6c 6c 43 6f 6d 70 |UPP, upp|CallComp|
|00000620| 6f 6e 65 6e 74 50 72 6f | 63 49 6e 66 6f 2c 20 63 |onentPro|cInfo, c|
|00000630| 70 20 29 20 3b 0d 7d 0d | 0d 23 65 6e 64 69 66 0d |p ) ;.}.|.#endif.|
|00000640| 0d 0d 23 69 66 20 21 54 | 41 52 47 45 54 5f 52 54 |..#if !T|ARGET_RT|
|00000650| 5f 4d 41 43 5f 43 46 4d | 0d 0d 2f 2f 09 64 69 72 |_MAC_CFM|..//.dir|
|00000660| 65 63 74 20 69 6e 6c 69 | 6e 65 20 63 61 6c 6c 73 |ect inli|ne calls|
|00000670| 20 28 63 6c 61 73 73 69 | 63 20 36 38 4b 20 6f 6e | (classi|c 68K on|
|00000680| 6c 79 29 0d 0d 65 78 74 | 65 72 6e 20 70 61 73 63 |ly)..ext|ern pasc|
|00000690| 61 6c 20 49 43 45 72 72 | 6f 72 20 49 43 43 53 74 |al ICErr|or ICCSt|
|000006a0| 61 72 74 43 6f 6d 70 6f | 6e 65 6e 74 20 28 20 49 |artCompo|nent ( I|
|000006b0| 43 49 6e 73 74 61 6e 63 | 65 20 69 6e 73 74 61 6e |CInstanc|e instan|
|000006c0| 63 65 2c 20 4f 53 54 79 | 70 65 20 63 72 65 61 74 |ce, OSTy|pe creat|
|000006d0| 6f 72 20 29 0d 09 43 6f | 6d 70 6f 6e 65 6e 74 43 |or )..Co|mponentC|
|000006e0| 61 6c 6c 4e 6f 77 20 28 | 20 6b 49 43 43 53 74 61 |allNow (| kICCSta|
|000006f0| 72 74 2c 20 73 69 7a 65 | 6f 66 20 28 20 4f 53 54 |rt, size|of ( OST|
|00000700| 79 70 65 20 29 20 29 20 | 3b 0d 65 78 74 65 72 6e |ype ) ) |;.extern|
|00000710| 20 70 61 73 63 61 6c 20 | 49 43 45 72 72 6f 72 20 | pascal |ICError |
|00000720| 49 43 43 53 74 6f 70 43 | 6f 6d 70 6f 6e 65 6e 74 |ICCStopC|omponent|
|00000730| 20 28 20 49 43 49 6e 73 | 74 61 6e 63 65 20 69 6e | ( ICIns|tance in|
|00000740| 73 74 61 6e 63 65 20 29 | 0d 09 43 6f 6d 70 6f 6e |stance )|..Compon|
|00000750| 65 6e 74 43 61 6c 6c 4e | 6f 77 20 28 20 6b 49 43 |entCallN|ow ( kIC|
|00000760| 43 53 74 6f 70 2c 20 30 | 20 29 20 3b 0d 65 78 74 |CStop, 0| ) ;.ext|
|00000770| 65 72 6e 20 70 61 73 63 | 61 6c 20 49 43 45 72 72 |ern pasc|al ICErr|
|00000780| 6f 72 20 49 43 43 46 69 | 6e 64 43 6f 6e 66 69 67 |or ICCFi|ndConfig|
|00000790| 46 69 6c 65 20 28 20 49 | 43 49 6e 73 74 61 6e 63 |File ( I|CInstanc|
|000007a0| 65 20 69 6e 73 74 61 6e | 63 65 2c 20 53 49 6e 74 |e instan|ce, SInt|
|000007b0| 31 36 20 63 6f 75 6e 74 | 2c 20 49 43 44 69 72 53 |16 count|, ICDirS|
|000007c0| 70 65 63 41 72 72 61 79 | 50 74 72 20 66 6f 6c 64 |pecArray|Ptr fold|
|000007d0| 65 72 73 20 29 0d 09 43 | 6f 6d 70 6f 6e 65 6e 74 |ers )..C|omponent|
|000007e0| 43 61 6c 6c 4e 6f 77 20 | 28 20 6b 49 43 43 46 69 |CallNow |( kICCFi|
|000007f0| 6e 64 43 6f 6e 66 69 67 | 46 69 6c 65 2c 20 73 69 |ndConfig|File, si|
|00000800| 7a 65 6f 66 20 28 20 53 | 49 6e 74 31 36 20 29 20 |zeof ( S|Int16 ) |
|00000810| 2b 20 73 69 7a 65 6f 66 | 20 28 20 49 43 44 69 72 |+ sizeof| ( ICDir|
|00000820| 53 70 65 63 41 72 72 61 | 79 50 74 72 20 29 20 29 |SpecArra|yPtr ) )|
|00000830| 20 3b 0d 65 78 74 65 72 | 6e 20 70 61 73 63 61 6c | ;.exter|n pascal|
|00000840| 20 49 43 45 72 72 6f 72 | 20 49 43 43 50 61 72 73 | ICError| ICCPars|
|00000850| 65 55 52 4c 20 28 20 49 | 43 49 6e 73 74 61 6e 63 |eURL ( I|CInstanc|
|00000860| 65 20 69 6e 73 74 61 6e | 63 65 2c 20 43 6f 6e 73 |e instan|ce, Cons|
|00000870| 74 53 74 72 32 35 35 50 | 61 72 61 6d 20 68 69 6e |tStr255P|aram hin|
|00000880| 74 2c 20 50 74 72 20 64 | 61 74 61 2c 20 53 49 6e |t, Ptr d|ata, SIn|
|00000890| 74 33 32 20 6c 65 6e 2c | 20 53 49 6e 74 33 32 20 |t32 len,| SInt32 |
|000008a0| 2a 20 73 65 6c 53 74 61 | 72 74 2c 20 53 49 6e 74 |* selSta|rt, SInt|
|000008b0| 33 32 20 2a 20 73 65 6c | 45 6e 64 2c 20 48 61 6e |32 * sel|End, Han|
|000008c0| 64 6c 65 20 75 72 6c 20 | 29 0d 09 43 6f 6d 70 6f |dle url |)..Compo|
|000008d0| 6e 65 6e 74 43 61 6c 6c | 4e 6f 77 20 28 20 6b 49 |nentCall|Now ( kI|
|000008e0| 43 43 50 61 72 73 65 55 | 52 4c 2c 20 73 69 7a 65 |CCParseU|RL, size|
|000008f0| 6f 66 20 28 20 43 6f 6e | 73 74 53 74 72 32 35 35 |of ( Con|stStr255|
|00000900| 50 61 72 61 6d 20 29 20 | 2b 20 73 69 7a 65 6f 66 |Param ) |+ sizeof|
|00000910| 20 28 20 50 74 72 20 29 | 20 2b 20 73 69 7a 65 6f | ( Ptr )| + sizeo|
|00000920| 66 20 28 20 53 49 6e 74 | 33 32 20 29 20 2b 20 73 |f ( SInt|32 ) + s|
|00000930| 69 7a 65 6f 66 20 28 20 | 53 49 6e 74 33 32 20 2a |izeof ( |SInt32 *|
|00000940| 20 29 20 2b 20 73 69 7a | 65 6f 66 20 28 20 53 49 | ) + siz|eof ( SI|
|00000950| 6e 74 33 32 20 2a 20 29 | 20 2b 20 73 69 7a 65 6f |nt32 * )| + sizeo|
|00000960| 66 20 28 20 48 61 6e 64 | 6c 65 20 29 20 29 20 3b |f ( Hand|le ) ) ;|
|00000970| 0d 65 78 74 65 72 6e 20 | 70 61 73 63 61 6c 20 49 |.extern |pascal I|
|00000980| 43 45 72 72 6f 72 20 49 | 43 43 4c 61 75 6e 63 68 |CError I|CCLaunch|
|00000990| 55 52 4c 20 28 20 49 43 | 49 6e 73 74 61 6e 63 65 |URL ( IC|Instance|
|000009a0| 20 69 6e 73 74 61 6e 63 | 65 2c 20 43 6f 6e 73 74 | instanc|e, Const|
|000009b0| 53 74 72 32 35 35 50 61 | 72 61 6d 20 68 69 6e 74 |Str255Pa|ram hint|
|000009c0| 2c 20 50 74 72 20 64 61 | 74 61 2c 20 53 49 6e 74 |, Ptr da|ta, SInt|
|000009d0| 33 32 20 6c 65 6e 2c 20 | 53 49 6e 74 33 32 20 2a |32 len, |SInt32 *|
|000009e0| 20 73 65 6c 53 74 61 72 | 74 2c 20 53 49 6e 74 33 | selStar|t, SInt3|
|000009f0| 32 20 2a 20 73 65 6c 45 | 6e 64 20 29 0d 09 43 6f |2 * selE|nd )..Co|
|00000a00| 6d 70 6f 6e 65 6e 74 43 | 61 6c 6c 4e 6f 77 20 28 |mponentC|allNow (|
|00000a10| 20 6b 49 43 43 4c 61 75 | 6e 63 68 55 52 4c 2c 20 | kICCLau|nchURL, |
|00000a20| 73 69 7a 65 6f 66 20 28 | 20 43 6f 6e 73 74 53 74 |sizeof (| ConstSt|
|00000a30| 72 32 35 35 50 61 72 61 | 6d 20 29 20 2b 20 73 69 |r255Para|m ) + si|
|00000a40| 7a 65 6f 66 20 28 20 50 | 74 72 20 29 20 2b 20 73 |zeof ( P|tr ) + s|
|00000a50| 69 7a 65 6f 66 20 28 20 | 53 49 6e 74 33 32 20 29 |izeof ( |SInt32 )|
|00000a60| 20 2b 20 73 69 7a 65 6f | 66 20 28 20 53 49 6e 74 | + sizeo|f ( SInt|
|00000a70| 33 32 20 2a 20 29 20 2b | 20 73 69 7a 65 6f 66 20 |32 * ) +| sizeof |
|00000a80| 28 20 53 49 6e 74 33 32 | 20 2a 20 29 20 29 20 3b |( SInt32| * ) ) ;|
|00000a90| 0d 23 65 6e 64 69 66 09 | 2f 2f 20 21 20 54 41 52 |.#endif.|// ! TAR|
|00000aa0| 47 45 54 5f 52 54 5f 4d | 41 43 5f 43 46 4d 0d 0d |GET_RT_M|AC_CFM..|
|00000ab0| 70 61 73 63 61 6c 20 49 | 43 45 72 72 6f 72 20 49 |pascal I|CError I|
|00000ac0| 43 53 74 61 72 74 0d 09 | 28 0d 09 09 49 43 49 6e |CStart..|(...ICIn|
|00000ad0| 73 74 61 6e 63 65 20 2a | 20 69 6e 73 74 61 6e 63 |stance *| instanc|
|00000ae0| 65 2c 0d 09 09 4f 53 54 | 79 70 65 20 63 72 65 61 |e,...OST|ype crea|
|00000af0| 74 6f 72 0d 09 29 0d 7b | 0d 09 53 49 6e 74 33 32 |tor..).{|..SInt32|
|00000b00| 20 72 65 73 70 6f 6e 73 | 65 20 3b 0d 09 49 43 49 | respons|e ;..ICI|
|00000b10| 6e 73 74 61 6e 63 65 20 | 69 63 20 3b 0d 09 49 43 |nstance |ic ;..IC|
|00000b20| 45 72 72 6f 72 20 65 72 | 72 20 3b 0d 0d 09 2a 20 |Error er|r ;...* |
|00000b30| 69 6e 73 74 61 6e 63 65 | 20 3d 20 6e 69 6c 20 3b |instance| = nil ;|
|00000b40| 0d 0d 09 2f 2f 09 6d 61 | 6b 65 20 73 75 72 65 20 |...//.ma|ke sure |
|00000b50| 74 68 65 20 43 6f 6d 70 | 6f 6e 65 6e 74 20 4d 61 |the Comp|onent Ma|
|00000b60| 6e 61 67 65 72 20 69 73 | 20 61 76 61 69 6c 61 62 |nager is| availab|
|00000b70| 6c 65 0d 09 69 66 20 28 | 20 28 20 65 72 72 20 3d |le..if (| ( err =|
|00000b80| 20 47 65 73 74 61 6c 74 | 20 28 20 67 65 73 74 61 | Gestalt| ( gesta|
|00000b90| 6c 74 43 6f 6d 70 6f 6e | 65 6e 74 4d 67 72 2c 20 |ltCompon|entMgr, |
|00000ba0| 26 20 72 65 73 70 6f 6e | 73 65 20 29 20 29 20 21 |& respon|se ) ) !|
|00000bb0| 3d 20 6e 6f 45 72 72 20 | 29 0d 09 7b 0d 09 09 67 |= noErr |)..{...g|
|00000bc0| 6f 74 6f 20 63 6c 65 61 | 6e 75 70 20 3b 0d 09 7d |oto clea|nup ;..}|
|00000bd0| 0d 0d 09 2f 2f 09 63 6f | 6e 6e 65 63 74 20 74 6f |...//.co|nnect to|
|00000be0| 20 49 6e 74 65 72 6e 65 | 74 20 43 6f 6e 66 69 67 | Interne|t Config|
|00000bf0| 0d 09 69 66 20 28 20 28 | 20 69 63 20 3d 20 28 20 |..if ( (| ic = ( |
|00000c00| 49 43 49 6e 73 74 61 6e | 63 65 20 29 20 4f 70 65 |ICInstan|ce ) Ope|
|00000c10| 6e 44 65 66 61 75 6c 74 | 43 6f 6d 70 6f 6e 65 6e |nDefault|Componen|
|00000c20| 74 20 28 20 6b 49 43 43 | 6f 6d 70 6f 6e 65 6e 74 |t ( kICC|omponent|
|00000c30| 54 79 70 65 2c 20 6b 49 | 43 43 6f 6d 70 6f 6e 65 |Type, kI|CCompone|
|00000c40| 6e 74 53 75 62 54 79 70 | 65 20 29 20 29 20 3d 3d |ntSubTyp|e ) ) ==|
|00000c50| 20 6e 69 6c 20 29 0d 09 | 7b 0d 09 09 65 72 72 20 | nil )..|{...err |
|00000c60| 3d 20 75 6e 69 6d 70 45 | 72 72 20 3b 0d 09 09 67 |= unimpE|rr ;...g|
|00000c70| 6f 74 6f 20 63 6c 65 61 | 6e 75 70 20 3b 0d 09 7d |oto clea|nup ;..}|
|00000c80| 0d 0d 09 2f 2f 09 73 74 | 61 72 74 20 49 6e 74 65 |...//.st|art Inte|
|00000c90| 72 6e 65 74 20 43 6f 6e | 66 69 67 0d 23 69 66 20 |rnet Con|fig.#if |
|00000ca0| 54 41 52 47 45 54 5f 52 | 54 5f 4d 41 43 5f 43 46 |TARGET_R|T_MAC_CF|
|00000cb0| 4d 0d 09 7b 0d 09 09 73 | 74 72 75 63 74 0d 09 09 |M..{...s|truct...|
|00000cc0| 7b 0d 09 09 09 55 49 6e | 74 38 20 66 6c 61 67 73 |{....UIn|t8 flags|
|00000cd0| 20 3b 0d 09 09 09 55 49 | 6e 74 38 20 70 61 72 61 | ;....UI|nt8 para|
|00000ce0| 6d 53 69 7a 65 20 3b 0d | 09 09 09 53 49 6e 74 31 |mSize ;.|...SInt1|
|00000cf0| 36 20 77 68 61 74 20 3b | 0d 09 09 09 4f 53 54 79 |6 what ;|....OSTy|
|00000d00| 70 65 20 63 72 65 61 74 | 6f 72 20 3b 0d 09 09 09 |pe creat|or ;....|
|00000d10| 49 43 49 6e 73 74 61 6e | 63 65 20 69 6e 73 74 61 |ICInstan|ce insta|
|00000d20| 6e 63 65 20 3b 0d 09 09 | 7d 20 70 61 72 61 6d 73 |nce ;...|} params|
|00000d30| 20 3b 0d 0d 09 09 70 61 | 72 61 6d 73 20 2e 20 66 | ;....pa|rams . f|
|00000d40| 6c 61 67 73 20 3d 20 30 | 20 3b 0d 09 09 70 61 72 |lags = 0| ;...par|
|00000d50| 61 6d 73 20 2e 20 70 61 | 72 61 6d 53 69 7a 65 20 |ams . pa|ramSize |
|00000d60| 3d 20 73 69 7a 65 6f 66 | 20 28 20 63 72 65 61 74 |= sizeof| ( creat|
|00000d70| 6f 72 20 29 20 3b 0d 09 | 09 70 61 72 61 6d 73 20 |or ) ;..|.params |
|00000d80| 2e 20 77 68 61 74 20 3d | 20 6b 49 43 43 53 74 61 |. what =| kICCSta|
|00000d90| 72 74 20 3b 0d 09 09 70 | 61 72 61 6d 73 20 2e 20 |rt ;...p|arams . |
|00000da0| 63 72 65 61 74 6f 72 20 | 3d 20 63 72 65 61 74 6f |creator |= creato|
|00000db0| 72 20 3b 0d 09 09 70 61 | 72 61 6d 73 20 2e 20 69 |r ;...pa|rams . i|
|00000dc0| 6e 73 74 61 6e 63 65 20 | 3d 20 69 63 20 3b 0d 0d |nstance |= ic ;..|
|00000dd0| 09 09 65 72 72 20 3d 20 | 43 61 6c 6c 43 6f 6d 70 |..err = |CallComp|
|00000de0| 6f 6e 65 6e 74 44 69 73 | 70 61 74 63 68 28 20 28 |onentDis|patch( (|
|00000df0| 43 6f 6d 70 6f 6e 65 6e | 74 50 61 72 61 6d 65 74 |Componen|tParamet|
|00000e00| 65 72 73 20 2a 29 20 26 | 20 70 61 72 61 6d 73 20 |ers *) &| params |
|00000e10| 29 3b 0d 09 7d 0d 23 65 | 6c 73 65 0d 09 65 72 72 |);..}.#e|lse..err|
|00000e20| 20 3d 20 49 43 43 53 74 | 61 72 74 43 6f 6d 70 6f | = ICCSt|artCompo|
|00000e30| 6e 65 6e 74 20 28 20 69 | 63 2c 20 63 72 65 61 74 |nent ( i|c, creat|
|00000e40| 6f 72 20 29 20 3b 0d 23 | 65 6e 64 69 66 0d 0d 09 |or ) ;.#|endif...|
|00000e50| 69 66 20 28 20 65 72 72 | 20 21 3d 20 6e 6f 45 72 |if ( err| != noEr|
|00000e60| 72 20 29 0d 09 7b 0d 09 | 09 43 6c 6f 73 65 43 6f |r )..{..|.CloseCo|
|00000e70| 6d 70 6f 6e 65 6e 74 20 | 28 20 28 20 43 6f 6d 70 |mponent |( ( Comp|
|00000e80| 6f 6e 65 6e 74 49 6e 73 | 74 61 6e 63 65 20 29 20 |onentIns|tance ) |
|00000e90| 69 63 20 29 20 3b 0d 09 | 09 67 6f 74 6f 20 63 6c |ic ) ;..|.goto cl|
|00000ea0| 65 61 6e 75 70 20 3b 0d | 09 7d 0d 0d 09 2f 2f 09 |eanup ;.|.}...//.|
|00000eb0| 72 65 74 75 72 6e 20 49 | 43 20 69 6e 73 74 61 6e |return I|C instan|
|00000ec0| 63 65 0d 09 2a 20 69 6e | 73 74 61 6e 63 65 20 3d |ce..* in|stance =|
|00000ed0| 20 69 63 20 3b 0d 0d 09 | 2f 2f 09 63 6c 65 61 72 | ic ;...|//.clear|
|00000ee0| 20 72 65 73 75 6c 74 20 | 63 6f 64 65 0d 09 65 72 | result |code..er|
|00000ef0| 72 20 3d 20 6e 6f 45 72 | 72 20 3b 0d 0d 63 6c 65 |r = noEr|r ;..cle|
|00000f00| 61 6e 75 70 20 3a 0d 09 | 72 65 74 75 72 6e 20 65 |anup :..|return e|
|00000f10| 72 72 20 3b 0d 7d 0d 0d | 70 61 73 63 61 6c 20 49 |rr ;.}..|pascal I|
|00000f20| 43 45 72 72 6f 72 20 49 | 43 53 74 6f 70 0d 09 28 |CError I|CStop..(|
|00000f30| 0d 09 09 49 43 49 6e 73 | 74 61 6e 63 65 20 69 6e |...ICIns|tance in|
|00000f40| 73 74 61 6e 63 65 0d 09 | 29 0d 7b 0d 09 2f 2f 09 |stance..|).{..//.|
|00000f50| 73 74 6f 70 20 49 6e 74 | 65 72 6e 65 74 20 43 6f |stop Int|ernet Co|
|00000f60| 6e 66 69 67 0d 23 69 66 | 20 54 41 52 47 45 54 5f |nfig.#if| TARGET_|
|00000f70| 52 54 5f 4d 41 43 5f 43 | 46 4d 0d 09 73 74 72 75 |RT_MAC_C|FM..stru|
|00000f80| 63 74 0d 09 7b 0d 09 09 | 55 49 6e 74 38 20 66 6c |ct..{...|UInt8 fl|
|00000f90| 61 67 73 20 3b 0d 09 09 | 55 49 6e 74 38 20 70 61 |ags ;...|UInt8 pa|
|00000fa0| 72 61 6d 53 69 7a 65 20 | 3b 0d 09 09 53 49 6e 74 |ramSize |;...SInt|
|00000fb0| 31 36 20 77 68 61 74 20 | 3b 0d 09 09 49 43 49 6e |16 what |;...ICIn|
|00000fc0| 73 74 61 6e 63 65 20 69 | 6e 73 74 61 6e 63 65 20 |stance i|nstance |
|00000fd0| 3b 0d 09 7d 20 70 61 72 | 61 6d 73 20 3b 0d 09 70 |;..} par|ams ;..p|
|00000fe0| 61 72 61 6d 73 20 2e 20 | 66 6c 61 67 73 20 3d 20 |arams . |flags = |
|00000ff0| 30 20 3b 0d 09 70 61 72 | 61 6d 73 20 2e 20 70 61 |0 ;..par|ams . pa|
|00001000| 72 61 6d 53 69 7a 65 20 | 3d 20 30 20 3b 0d 09 70 |ramSize |= 0 ;..p|
|00001010| 61 72 61 6d 73 20 2e 20 | 77 68 61 74 20 3d 20 6b |arams . |what = k|
|00001020| 49 43 43 53 74 6f 70 20 | 3b 0d 09 70 61 72 61 6d |ICCStop |;..param|
|00001030| 73 20 2e 20 69 6e 73 74 | 61 6e 63 65 20 3d 20 69 |s . inst|ance = i|
|00001040| 6e 73 74 61 6e 63 65 20 | 3b 0d 09 43 61 6c 6c 43 |nstance |;..CallC|
|00001050| 6f 6d 70 6f 6e 65 6e 74 | 44 69 73 70 61 74 63 68 |omponent|Dispatch|
|00001060| 28 20 28 43 6f 6d 70 6f | 6e 65 6e 74 50 61 72 61 |( (Compo|nentPara|
|00001070| 6d 65 74 65 72 73 20 2a | 29 20 26 20 70 61 72 61 |meters *|) & para|
|00001080| 6d 73 20 29 20 3b 0d 23 | 65 6c 73 65 0d 09 49 43 |ms ) ;.#|else..IC|
|00001090| 43 53 74 6f 70 43 6f 6d | 70 6f 6e 65 6e 74 20 28 |CStopCom|ponent (|
|000010a0| 20 69 6e 73 74 61 6e 63 | 65 20 29 20 3b 0d 23 65 | instanc|e ) ;.#e|
|000010b0| 6e 64 69 66 0d 0d 09 2f | 2f 09 61 6e 64 20 72 65 |ndif.../|/.and re|
|000010c0| 6c 65 61 73 65 20 74 68 | 65 20 63 6f 6d 70 6f 6e |lease th|e compon|
|000010d0| 65 6e 74 20 69 6e 73 74 | 61 6e 63 65 0d 09 43 6c |ent inst|ance..Cl|
|000010e0| 6f 73 65 43 6f 6d 70 6f | 6e 65 6e 74 20 28 20 28 |oseCompo|nent ( (|
|000010f0| 20 43 6f 6d 70 6f 6e 65 | 6e 74 49 6e 73 74 61 6e | Compone|ntInstan|
|00001100| 63 65 20 29 20 69 6e 73 | 74 61 6e 63 65 20 29 20 |ce ) ins|tance ) |
|00001110| 3b 0d 0d 09 72 65 74 75 | 72 6e 20 6e 6f 45 72 72 |;...retu|rn noErr|
|00001120| 20 3b 0d 7d 0d 0d 70 61 | 73 63 61 6c 20 49 43 45 | ;.}..pa|scal ICE|
|00001130| 72 72 6f 72 20 49 43 46 | 69 6e 64 43 6f 6e 66 69 |rror ICF|indConfi|
|00001140| 67 46 69 6c 65 0d 09 28 | 0d 09 09 49 43 49 6e 73 |gFile..(|...ICIns|
|00001150| 74 61 6e 63 65 20 69 6e | 73 74 61 6e 63 65 2c 0d |tance in|stance,.|
|00001160| 09 09 53 49 6e 74 31 36 | 20 63 6f 75 6e 74 2c 0d |..SInt16| count,.|
|00001170| 09 09 49 43 44 69 72 53 | 70 65 63 41 72 72 61 79 |..ICDirS|pecArray|
|00001180| 50 74 72 20 66 6f 6c 64 | 65 72 73 0d 09 29 0d 7b |Ptr fold|ers..).{|
|00001190| 0d 23 69 66 20 54 41 52 | 47 45 54 5f 52 54 5f 4d |.#if TAR|GET_RT_M|
|000011a0| 41 43 5f 43 46 4d 0d 09 | 73 74 72 75 63 74 0d 09 |AC_CFM..|struct..|
|000011b0| 7b 0d 09 09 55 49 6e 74 | 38 20 66 6c 61 67 73 20 |{...UInt|8 flags |
|000011c0| 3b 0d 09 09 55 49 6e 74 | 38 20 70 61 72 61 6d 53 |;...UInt|8 paramS|
|000011d0| 69 7a 65 20 3b 0d 09 09 | 53 49 6e 74 31 36 20 77 |ize ;...|SInt16 w|
|000011e0| 68 61 74 20 3b 0d 09 09 | 76 6f 69 64 20 2a 20 66 |hat ;...|void * f|
|000011f0| 6f 6c 64 65 72 73 20 3b | 0d 09 09 53 49 6e 74 31 |olders ;|...SInt1|
|00001200| 36 20 63 6f 75 6e 74 20 | 3b 0d 09 09 49 43 49 6e |6 count |;...ICIn|
|00001210| 73 74 61 6e 63 65 20 69 | 6e 73 74 61 6e 63 65 20 |stance i|nstance |
|00001220| 3b 0d 09 7d 20 70 61 72 | 61 6d 73 20 3b 0d 09 70 |;..} par|ams ;..p|
|00001230| 61 72 61 6d 73 20 2e 20 | 66 6c 61 67 73 20 3d 20 |arams . |flags = |
|00001240| 30 20 3b 0d 09 70 61 72 | 61 6d 73 20 2e 20 70 61 |0 ;..par|ams . pa|
|00001250| 72 61 6d 53 69 7a 65 20 | 3d 20 73 69 7a 65 6f 66 |ramSize |= sizeof|
|00001260| 20 28 20 63 6f 75 6e 74 | 20 29 20 2b 20 73 69 7a | ( count| ) + siz|
|00001270| 65 6f 66 20 28 20 66 6f | 6c 64 65 72 73 20 29 20 |eof ( fo|lders ) |
|00001280| 3b 0d 09 70 61 72 61 6d | 73 20 2e 20 77 68 61 74 |;..param|s . what|
|00001290| 20 3d 20 6b 49 43 43 46 | 69 6e 64 43 6f 6e 66 69 | = kICCF|indConfi|
|000012a0| 67 46 69 6c 65 20 3b 0d | 09 70 61 72 61 6d 73 20 |gFile ;.|.params |
|000012b0| 2e 20 66 6f 6c 64 65 72 | 73 20 3d 20 66 6f 6c 64 |. folder|s = fold|
|000012c0| 65 72 73 20 3b 0d 09 70 | 61 72 61 6d 73 20 2e 20 |ers ;..p|arams . |
|000012d0| 63 6f 75 6e 74 20 3d 20 | 63 6f 75 6e 74 20 3b 0d |count = |count ;.|
|000012e0| 09 70 61 72 61 6d 73 20 | 2e 20 69 6e 73 74 61 6e |.params |. instan|
|000012f0| 63 65 20 3d 20 69 6e 73 | 74 61 6e 63 65 20 3b 0d |ce = ins|tance ;.|
|00001300| 09 72 65 74 75 72 6e 20 | 43 61 6c 6c 43 6f 6d 70 |.return |CallComp|
|00001310| 6f 6e 65 6e 74 44 69 73 | 70 61 74 63 68 28 20 28 |onentDis|patch( (|
|00001320| 43 6f 6d 70 6f 6e 65 6e | 74 50 61 72 61 6d 65 74 |Componen|tParamet|
|00001330| 65 72 73 20 2a 29 20 26 | 20 70 61 72 61 6d 73 20 |ers *) &| params |
|00001340| 29 20 3b 0d 23 65 6c 73 | 65 0d 09 72 65 74 75 72 |) ;.#els|e..retur|
|00001350| 6e 20 49 43 43 46 69 6e | 64 43 6f 6e 66 69 67 46 |n ICCFin|dConfigF|
|00001360| 69 6c 65 20 28 20 69 6e | 73 74 61 6e 63 65 2c 20 |ile ( in|stance, |
|00001370| 63 6f 75 6e 74 2c 20 66 | 6f 6c 64 65 72 73 20 29 |count, f|olders )|
|00001380| 20 3b 0d 23 65 6e 64 69 | 66 0d 7d 0d 0d 70 61 73 | ;.#endi|f.}..pas|
|00001390| 63 61 6c 20 49 43 45 72 | 72 6f 72 20 49 43 50 61 |cal ICEr|ror ICPa|
|000013a0| 72 73 65 55 52 4c 0d 09 | 28 0d 09 09 49 43 49 6e |rseURL..|(...ICIn|
|000013b0| 73 74 61 6e 63 65 20 69 | 6e 73 74 61 6e 63 65 2c |stance i|nstance,|
|000013c0| 0d 09 09 43 6f 6e 73 74 | 53 74 72 32 35 35 50 61 |...Const|Str255Pa|
|000013d0| 72 61 6d 20 68 69 6e 74 | 2c 0d 09 09 50 74 72 20 |ram hint|,...Ptr |
|000013e0| 64 61 74 61 2c 0d 09 09 | 53 49 6e 74 33 32 20 6c |data,...|SInt32 l|
|000013f0| 65 6e 2c 0d 09 09 53 49 | 6e 74 33 32 20 2a 20 73 |en,...SI|nt32 * s|
|00001400| 65 6c 53 74 61 72 74 2c | 0d 09 09 53 49 6e 74 33 |elStart,|...SInt3|
|00001410| 32 20 2a 20 73 65 6c 45 | 6e 64 2c 0d 09 09 48 61 |2 * selE|nd,...Ha|
|00001420| 6e 64 6c 65 20 75 72 6c | 0d 09 29 0d 7b 0d 23 69 |ndle url|..).{.#i|
|00001430| 66 20 54 41 52 47 45 54 | 5f 52 54 5f 4d 41 43 5f |f TARGET|_RT_MAC_|
|00001440| 43 46 4d 0d 09 73 74 72 | 75 63 74 0d 09 7b 0d 09 |CFM..str|uct..{..|
|00001450| 09 55 49 6e 74 38 20 66 | 6c 61 67 73 20 3b 0d 09 |.UInt8 f|lags ;..|
|00001460| 09 55 49 6e 74 38 20 70 | 61 72 61 6d 53 69 7a 65 |.UInt8 p|aramSize|
|00001470| 20 3b 0d 09 09 53 49 6e | 74 31 36 20 77 68 61 74 | ;...SIn|t16 what|
|00001480| 20 3b 0d 09 09 48 61 6e | 64 6c 65 20 75 72 6c 20 | ;...Han|dle url |
|00001490| 3b 0d 09 09 53 49 6e 74 | 33 32 20 2a 20 73 65 6c |;...SInt|32 * sel|
|000014a0| 45 6e 64 20 3b 0d 09 09 | 53 49 6e 74 33 32 20 2a |End ;...|SInt32 *|
|000014b0| 20 73 65 6c 53 74 61 72 | 74 20 3b 0d 09 09 53 49 | selStar|t ;...SI|
|000014c0| 6e 74 33 32 20 6c 65 6e | 20 3b 0d 09 09 50 74 72 |nt32 len| ;...Ptr|
|000014d0| 20 64 61 74 61 20 3b 0d | 09 09 43 6f 6e 73 74 53 | data ;.|..ConstS|
|000014e0| 74 72 32 35 35 50 61 72 | 61 6d 20 68 69 6e 74 20 |tr255Par|am hint |
|000014f0| 3b 0d 09 09 49 43 49 6e | 73 74 61 6e 63 65 20 69 |;...ICIn|stance i|
|00001500| 6e 73 74 61 6e 63 65 20 | 3b 0d 09 7d 20 70 61 72 |nstance |;..} par|
|00001510| 61 6d 73 20 3b 0d 09 70 | 61 72 61 6d 73 20 2e 20 |ams ;..p|arams . |
|00001520| 66 6c 61 67 73 20 3d 20 | 30 20 3b 0d 09 70 61 72 |flags = |0 ;..par|
|00001530| 61 6d 73 20 2e 20 70 61 | 72 61 6d 53 69 7a 65 20 |ams . pa|ramSize |
|00001540| 3d 20 73 69 7a 65 6f 66 | 20 28 20 68 69 6e 74 20 |= sizeof| ( hint |
|00001550| 29 20 2b 20 73 69 7a 65 | 6f 66 20 28 20 64 61 74 |) + size|of ( dat|
|00001560| 61 20 29 20 2b 20 73 69 | 7a 65 6f 66 20 28 6c 65 |a ) + si|zeof (le|
|00001570| 6e 20 29 20 2b 0d 09 09 | 73 69 7a 65 6f 66 20 28 |n ) +...|sizeof (|
|00001580| 20 73 65 6c 53 74 61 72 | 74 20 29 20 2b 20 73 69 | selStar|t ) + si|
|00001590| 7a 65 6f 66 20 28 20 73 | 65 6c 45 6e 64 20 29 20 |zeof ( s|elEnd ) |
|000015a0| 2b 20 73 69 7a 65 6f 66 | 20 28 20 75 72 6c 20 29 |+ sizeof| ( url )|
|000015b0| 20 3b 0d 09 70 61 72 61 | 6d 73 20 2e 20 77 68 61 | ;..para|ms . wha|
|000015c0| 74 20 3d 20 6b 49 43 43 | 50 61 72 73 65 55 52 4c |t = kICC|ParseURL|
|000015d0| 20 3b 0d 09 70 61 72 61 | 6d 73 20 2e 20 75 72 6c | ;..para|ms . url|
|000015e0| 20 3d 20 75 72 6c 20 3b | 0d 09 70 61 72 61 6d 73 | = url ;|..params|
|000015f0| 20 2e 20 73 65 6c 45 6e | 64 20 3d 20 73 65 6c 45 | . selEn|d = selE|
|00001600| 6e 64 20 3b 0d 09 70 61 | 72 61 6d 73 20 2e 20 73 |nd ;..pa|rams . s|
|00001610| 65 6c 53 74 61 72 74 20 | 3d 20 73 65 6c 53 74 61 |elStart |= selSta|
|00001620| 72 74 20 3b 0d 09 70 61 | 72 61 6d 73 20 2e 20 6c |rt ;..pa|rams . l|
|00001630| 65 6e 20 3d 20 6c 65 6e | 20 3b 0d 09 70 61 72 61 |en = len| ;..para|
|00001640| 6d 73 20 2e 20 64 61 74 | 61 20 3d 20 64 61 74 61 |ms . dat|a = data|
|00001650| 20 3b 0d 09 70 61 72 61 | 6d 73 20 2e 20 68 69 6e | ;..para|ms . hin|
|00001660| 74 20 3d 20 68 69 6e 74 | 20 3b 0d 09 70 61 72 61 |t = hint| ;..para|
|00001670| 6d 73 20 2e 20 69 6e 73 | 74 61 6e 63 65 20 3d 20 |ms . ins|tance = |
|00001680| 69 6e 73 74 61 6e 63 65 | 20 3b 0d 09 72 65 74 75 |instance| ;..retu|
|00001690| 72 6e 20 43 61 6c 6c 43 | 6f 6d 70 6f 6e 65 6e 74 |rn CallC|omponent|
|000016a0| 44 69 73 70 61 74 63 68 | 28 20 28 43 6f 6d 70 6f |Dispatch|( (Compo|
|000016b0| 6e 65 6e 74 50 61 72 61 | 6d 65 74 65 72 73 20 2a |nentPara|meters *|
|000016c0| 29 20 26 20 70 61 72 61 | 6d 73 20 29 20 3b 0d 23 |) & para|ms ) ;.#|
|000016d0| 65 6c 73 65 0d 09 72 65 | 74 75 72 6e 20 49 43 43 |else..re|turn ICC|
|000016e0| 50 61 72 73 65 55 52 4c | 20 28 20 69 6e 73 74 61 |ParseURL| ( insta|
|000016f0| 6e 63 65 2c 20 68 69 6e | 74 2c 20 64 61 74 61 2c |nce, hin|t, data,|
|00001700| 20 6c 65 6e 2c 20 73 65 | 6c 53 74 61 72 74 2c 20 | len, se|lStart, |
|00001710| 73 65 6c 45 6e 64 2c 20 | 75 72 6c 20 29 20 3b 0d |selEnd, |url ) ;.|
|00001720| 23 65 6e 64 69 66 0d 7d | 0d 0d 70 61 73 63 61 6c |#endif.}|..pascal|
|00001730| 20 49 43 45 72 72 6f 72 | 20 49 43 4c 61 75 6e 63 | ICError| ICLaunc|
|00001740| 68 55 52 4c 0d 09 28 0d | 09 09 49 43 49 6e 73 74 |hURL..(.|..ICInst|
|00001750| 61 6e 63 65 20 69 6e 73 | 74 61 6e 63 65 2c 0d 09 |ance ins|tance,..|
|00001760| 09 43 6f 6e 73 74 53 74 | 72 32 35 35 50 61 72 61 |.ConstSt|r255Para|
|00001770| 6d 20 68 69 6e 74 2c 0d | 09 09 50 74 72 20 64 61 |m hint,.|..Ptr da|
|00001780| 74 61 2c 0d 09 09 53 49 | 6e 74 33 32 20 6c 65 6e |ta,...SI|nt32 len|
|00001790| 2c 0d 09 09 53 49 6e 74 | 33 32 20 2a 20 73 65 6c |,...SInt|32 * sel|
|000017a0| 53 74 61 72 74 2c 0d 09 | 09 53 49 6e 74 33 32 20 |Start,..|.SInt32 |
|000017b0| 2a 20 73 65 6c 45 6e 64 | 0d 09 29 0d 7b 0d 23 69 |* selEnd|..).{.#i|
|000017c0| 66 20 54 41 52 47 45 54 | 5f 52 54 5f 4d 41 43 5f |f TARGET|_RT_MAC_|
|000017d0| 43 46 4d 0d 09 73 74 72 | 75 63 74 0d 09 7b 0d 09 |CFM..str|uct..{..|
|000017e0| 09 55 49 6e 74 38 20 66 | 6c 61 67 73 20 3b 0d 09 |.UInt8 f|lags ;..|
|000017f0| 09 55 49 6e 74 38 20 70 | 61 72 61 6d 53 69 7a 65 |.UInt8 p|aramSize|
|00001800| 20 3b 0d 09 09 53 49 6e | 74 31 36 20 77 68 61 74 | ;...SIn|t16 what|
|00001810| 20 3b 0d 09 09 53 49 6e | 74 33 32 20 2a 20 73 65 | ;...SIn|t32 * se|
|00001820| 6c 45 6e 64 20 3b 0d 09 | 09 53 49 6e 74 33 32 20 |lEnd ;..|.SInt32 |
|00001830| 2a 20 73 65 6c 53 74 61 | 72 74 20 3b 0d 09 09 53 |* selSta|rt ;...S|
|00001840| 49 6e 74 33 32 20 6c 65 | 6e 20 3b 0d 09 09 50 74 |Int32 le|n ;...Pt|
|00001850| 72 20 64 61 74 61 20 3b | 0d 09 09 43 6f 6e 73 74 |r data ;|...Const|
|00001860| 53 74 72 32 35 35 50 61 | 72 61 6d 20 68 69 6e 74 |Str255Pa|ram hint|
|00001870| 20 3b 0d 09 09 49 43 49 | 6e 73 74 61 6e 63 65 20 | ;...ICI|nstance |
|00001880| 69 6e 73 74 61 6e 63 65 | 20 3b 0d 09 7d 20 70 61 |instance| ;..} pa|
|00001890| 72 61 6d 73 20 3b 0d 09 | 70 61 72 61 6d 73 20 2e |rams ;..|params .|
|000018a0| 20 66 6c 61 67 73 20 3d | 20 30 20 3b 0d 09 70 61 | flags =| 0 ;..pa|
|000018b0| 72 61 6d 73 20 2e 20 70 | 61 72 61 6d 53 69 7a 65 |rams . p|aramSize|
|000018c0| 20 3d 20 73 69 7a 65 6f | 66 20 28 20 68 69 6e 74 | = sizeo|f ( hint|
|000018d0| 20 29 20 2b 20 73 69 7a | 65 6f 66 20 28 20 64 61 | ) + siz|eof ( da|
|000018e0| 74 61 20 29 20 2b 20 73 | 69 7a 65 6f 66 20 28 6c |ta ) + s|izeof (l|
|000018f0| 65 6e 20 29 20 2b 0d 09 | 09 73 69 7a 65 6f 66 20 |en ) +..|.sizeof |
|00001900| 28 20 73 65 6c 53 74 61 | 72 74 20 29 20 2b 20 73 |( selSta|rt ) + s|
|00001910| 69 7a 65 6f 66 20 28 20 | 73 65 6c 45 6e 64 20 29 |izeof ( |selEnd )|
|00001920| 20 3b 0d 09 70 61 72 61 | 6d 73 20 2e 20 77 68 61 | ;..para|ms . wha|
|00001930| 74 20 3d 20 6b 49 43 43 | 4c 61 75 6e 63 68 55 52 |t = kICC|LaunchUR|
|00001940| 4c 20 3b 0d 09 70 61 72 | 61 6d 73 20 2e 20 73 65 |L ;..par|ams . se|
|00001950| 6c 45 6e 64 20 3d 20 73 | 65 6c 45 6e 64 20 3b 0d |lEnd = s|elEnd ;.|
|00001960| 09 70 61 72 61 6d 73 20 | 2e 20 73 65 6c 53 74 61 |.params |. selSta|
|00001970| 72 74 20 3d 20 73 65 6c | 53 74 61 72 74 20 3b 0d |rt = sel|Start ;.|
|00001980| 09 70 61 72 61 6d 73 20 | 2e 20 6c 65 6e 20 3d 20 |.params |. len = |
|00001990| 6c 65 6e 20 3b 0d 09 70 | 61 72 61 6d 73 20 2e 20 |len ;..p|arams . |
|000019a0| 64 61 74 61 20 3d 20 64 | 61 74 61 20 3b 0d 09 70 |data = d|ata ;..p|
|000019b0| 61 72 61 6d 73 20 2e 20 | 68 69 6e 74 20 3d 20 68 |arams . |hint = h|
|000019c0| 69 6e 74 20 3b 0d 09 70 | 61 72 61 6d 73 20 2e 20 |int ;..p|arams . |
|000019d0| 69 6e 73 74 61 6e 63 65 | 20 3d 20 69 6e 73 74 61 |instance| = insta|
|000019e0| 6e 63 65 20 3b 0d 09 72 | 65 74 75 72 6e 20 43 61 |nce ;..r|eturn Ca|
|000019f0| 6c 6c 43 6f 6d 70 6f 6e | 65 6e 74 44 69 73 70 61 |llCompon|entDispa|
|00001a00| 74 63 68 28 20 28 43 6f | 6d 70 6f 6e 65 6e 74 50 |tch( (Co|mponentP|
|00001a10| 61 72 61 6d 65 74 65 72 | 73 20 2a 29 20 26 20 70 |arameter|s *) & p|
|00001a20| 61 72 61 6d 73 20 29 20 | 3b 0d 23 65 6c 73 65 0d |arams ) |;.#else.|
|00001a30| 09 72 65 74 75 72 6e 20 | 49 43 43 4c 61 75 6e 63 |.return |ICCLaunc|
|00001a40| 68 55 52 4c 20 28 20 69 | 6e 73 74 61 6e 63 65 2c |hURL ( i|nstance,|
|00001a50| 20 68 69 6e 74 2c 20 64 | 61 74 61 2c 20 6c 65 6e | hint, d|ata, len|
|00001a60| 2c 20 73 65 6c 53 74 61 | 72 74 2c 20 73 65 6c 45 |, selSta|rt, selE|
|00001a70| 6e 64 20 29 20 3b 0d 23 | 65 6e 64 69 66 0d 7d 0d |nd ) ;.#|endif.}.|
|00001a80| 0d 23 69 66 20 50 52 41 | 47 4d 41 5f 53 54 52 55 |.#if PRA|GMA_STRU|
|00001a90| 43 54 5f 41 4c 49 47 4e | 0d 23 70 72 61 67 6d 61 |CT_ALIGN|.#pragma|
|00001aa0| 20 6f 70 74 69 6f 6e 73 | 20 61 6c 69 67 6e 3d 72 | options| align=r|
|00001ab0| 65 73 65 74 0d 23 65 6e | 64 69 66 0d 0d 23 65 6e |eset.#en|dif..#en|
|00001ac0| 64 69 66 20 2f 2a 20 21 | 54 41 52 47 45 54 5f 43 |dif /* !|TARGET_C|
|00001ad0| 41 52 42 4f 4e 20 2a 2f | 0d 00 00 00 00 00 00 00 |ARBON */|........|
|00001ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b00| 00 00 01 00 00 00 01 00 | 00 00 00 00 00 00 00 1e |........|........|
|00001b10| 0f ff 02 40 0f ff 02 20 | 08 00 02 10 08 00 03 f8 |...@... |........|
|00001b20| 08 00 00 08 08 00 00 08 | 08 00 00 08 08 00 00 08 |........|........|
|00001b30| 0a 57 45 49 43 47 6c 75 | 65 2e 63 6e 74 65 72 73 |.WEICGlu|e.cnters|
|00001b40| 20 44 42 2e 63 63 74 73 | 32 70 65 72 6f 6d 6c 6d | DB.ccts|2peromlm|
|00001b50| 02 00 54 45 58 54 43 57 | 49 45 01 00 ff ff ff ff |..TEXTCW|IE......|
|00001b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b70| 00 00 af 61 84 24 00 00 | 17 d8 00 00 01 ac ff f8 |...a.$..|........|
|00001b80| 00 00 00 00 0f ff fe 00 | 0f ff ff 00 0f ff ff 80 |........|........|
|00001b90| 0f ff ff c0 0f ff ff e0 | 0f ff ff f0 0f ff ff f8 |........|........|
|00001ba0| 0f ff ff f8 0f ff ff f8 | 0f ff ff f8 0f ff ff f8 |........|........|
|00001bb0| 0f ff ff f8 0f ff ff f8 | 0f ff ff f8 0f ff ff f8 |........|........|
|00001bc0| 0f ff ff f8 0f ff ff f8 | 0f ff ff f8 0f ff ff f8 |........|........|
|00001bd0| 0f ff ff f8 0f ff ff f8 | 0f ff ff f8 0f ff ff f8 |........|........|
|00001be0| 0f ff ff f8 0f ff ff f8 | 0f ff ff f8 0f ff ff f8 |........|........|
|00001bf0| 0f ff ff f8 0f ff ff f8 | 0f ff ff f8 0f ff ff f8 |........|........|
|00001c00| 00 00 01 00 00 00 01 00 | 00 00 00 00 00 00 00 1e |........|........|
|00001c10| 07 9f d8 34 03 9e 00 00 | 00 1c 00 1e ff ff 00 00 |...4....|........|
|00001c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+